package com.jiuqi.irs.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="TB_PAYEEACCOUNT"
 *     
*/
public class TbPayeeaccount implements Serializable {

    /** identifier field */
    private String paGuid;

    /** persistent field */
    private String orgCode;

    /** persistent field */
    private String payeeAccount;

    /** nullable persistent field */
    private String proxyBank;

    /** nullable persistent field */
    private String payeeBankcode;

    /** persistent field */
    private String payeeBank;

    /** nullable persistent field */
    private String payeeName;

    /** nullable persistent field */
    private String payeeYear;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public TbPayeeaccount(String paGuid, String orgCode, String payeeAccount, String proxyBank, String payeeBankcode, String payeeBank, String payeeName, String payeeYear, String reserved1, String reserved2, String reserved3) {
        this.paGuid = paGuid;
        this.orgCode = orgCode;
        this.payeeAccount = payeeAccount;
        this.proxyBank = proxyBank;
        this.payeeBankcode = payeeBankcode;
        this.payeeBank = payeeBank;
        this.payeeName = payeeName;
        this.payeeYear = payeeYear;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public TbPayeeaccount() {
    }

    /** minimal constructor */
    public TbPayeeaccount(String paGuid, String orgCode, String payeeAccount, String payeeBank) {
        this.paGuid = paGuid;
        this.orgCode = orgCode;
        this.payeeAccount = payeeAccount;
        this.payeeBank = payeeBank;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="PA_GUID"
     *         
     */
    public String getPaGuid() {
        return this.paGuid;
    }

    public void setPaGuid(String paGuid) {
        this.paGuid = paGuid;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_CODE"
     *             length="42"
     *             not-null="true"
     *         
     */
    public String getOrgCode() {
        return this.orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    /** 
     *            @hibernate.property
     *             column="PAYEE_ACCOUNT"
     *             length="40"
     *             not-null="true"
     *         
     */
    public String getPayeeAccount() {
        return this.payeeAccount;
    }

    public void setPayeeAccount(String payeeAccount) {
        this.payeeAccount = payeeAccount;
    }

    /** 
     *            @hibernate.property
     *             column="PROXY_BANK"
     *             length="16"
     *         
     */
    public String getProxyBank() {
        return this.proxyBank;
    }

    public void setProxyBank(String proxyBank) {
        this.proxyBank = proxyBank;
    }

    /** 
     *            @hibernate.property
     *             column="PAYEE_BANKCODE"
     *             length="30"
     *         
     */
    public String getPayeeBankcode() {
        return this.payeeBankcode;
    }

    public void setPayeeBankcode(String payeeBankcode) {
        this.payeeBankcode = payeeBankcode;
    }

    /** 
     *            @hibernate.property
     *             column="PAYEE_BANK"
     *             length="100"
     *             not-null="true"
     *         
     */
    public String getPayeeBank() {
        return this.payeeBank;
    }

    public void setPayeeBank(String payeeBank) {
        this.payeeBank = payeeBank;
    }

    /** 
     *            @hibernate.property
     *             column="PAYEE_NAME"
     *             length="100"
     *         
     */
    public String getPayeeName() {
        return this.payeeName;
    }

    public void setPayeeName(String payeeName) {
        this.payeeName = payeeName;
    }

    /** 
     *            @hibernate.property
     *             column="PAYEE_YEAR"
     *             length="4"
     *         
     */
    public String getPayeeYear() {
        return this.payeeYear;
    }

    public void setPayeeYear(String payeeYear) {
        this.payeeYear = payeeYear;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="50"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="100"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="150"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("paGuid", getPaGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof TbPayeeaccount) ) return false;
        TbPayeeaccount castOther = (TbPayeeaccount) other;
        return new EqualsBuilder()
            .append(this.getPaGuid(), castOther.getPaGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getPaGuid())
            .toHashCode();
    }

}
